public class Test {
    public static void main(String[] args) {
//        for循环的方式完成1-5的累加之和

        int j = 1;
        int sum = 0;
        for ( j = 1; j <= 5 ; j++) {
            int i = 1;
            int ret = 0;
            for ( i = 1; i <= j; i++) {
                ret += i;
            }
//            System.out.println(ret);
            sum += ret;
        }
        System.out.println(sum);
    }

}
